/*
*   class getLocalHostTest
*/
import java.net.*;

public class getLocalHostTest {
	
  public static void main (String args[]) {
    InetAddress myIP = null;
    try {
      myIP = InetAddress.getByName("localhost");
    }
    catch(UnknownHostException e){
      System.out.println(e);
    }

    System.out.println(myIP);
  }
} 
